package com.briup.demo.bean;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel(description = "学生信息模型")
public class CmsStudent {
	
	@ApiModelProperty(value = "学生学号")
    private String num;
	
	@ApiModelProperty(value = "学生姓名",required = true)
    private String name;

	@ApiModelProperty(value = "学生性别")
    private String sex;

	@ApiModelProperty(value = "学生年龄")
    private Integer age;

	@ApiModelProperty(value = "学生出生日期 格式：2020-01-01")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date birthdate;

	@ApiModelProperty(value = "学生家庭住址")
    private String address;

	@ApiModelProperty(value = "手机号码")
    private String phone;

    public String getNum() {
        return num;
    }

    public void setNum(String num) {
        this.num = num == null ? null : num.trim();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex == null ? null : sex.trim();
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Date getBirthdate() {
        return birthdate;
    }

    public void setBirthdate(Date birthdate) {
        this.birthdate = birthdate;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address == null ? null : address.trim();
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }
}